package cn.tedu.submarine;

import javax.swing.ImageIcon;

public class Bomb extends SeaObject {

    public Bomb(int x, int y) {
        super(9, 12, x, y, 3);

    }

    public void move() {
        y += speed;//向右移动

    }

    public ImageIcon getImage() {
        return Images.bomb;

    }

    public boolean isOutOfBounds() {
        return y >= World.HEIGHT;
    }
}